const {Sequelize} = require('sequelize');
// 方法 3: 分别传递参数 (其它数据库)
const seq = new Sequelize(
    'koa2', 
    'root', 
    'root', {
    host: 'localhost',
     dialect: "mysql", /* one of 'mysql' | 'postgres' | 'sqlite' | 'mariadb' | 'mssql' | 'db2' | 'snowflake' | 'oracle' */
});
seq.authenticate()
    .then(() => {
    })
    .catch((err) => {
        console.log('数据库链接失败',err)
    })
module.exports =seq